package com.moyu.admin.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.moyu.admin.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author moyu
 * @since 2019-02-18
 */
public interface SysRoleMapper extends BaseMapper<SysRole> {

  List<SysRole> findRolesByUser(@Param("userId") Long userId);

  List<SysRole> selectRoleList(Page<SysRole> page);
}
